package org.lc.cmd;

public interface TypedSysReqHandler extends SysReqHandler {
    String acceptType();

    @Override
    default void handle(ReceivedSysReq req, SysReqHandlerChain chain) {
        if (!acceptType().equals(req.getType())) {
            chain.next(req);
            return;
        }
        handle(req);
    }

    void handle(ReceivedSysReq req);
}
